package com.yc.c112s3plyblog.util;

import org.springframework.core.convert.converter.Converter;

import java.time.LocalDateTime;

// 日期转换器
public class DateConvertor
        implements Converter<String, LocalDateTime> {
    @Override
    public LocalDateTime convert(String source) {
        return LocalDateTime.parse(source);
    }
}
